/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package JFreeChartExtensions.JChartMenu.ChartMenuListeners;

import JFreeChartExtensions.ChartPanelDialogs.SetScaleDialog;
import JFreeChartExtensions.ExtendableChartPanel;
import java.awt.event.ActionEvent;

/**
 *
 * @author Nobody
 */
public class LaunchSetScaleDialogListener extends AbstractChartMenuListener {

    public LaunchSetScaleDialogListener(ExtendableChartPanel chart) {
        super(chart);
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            @Override
            public void run() {
                new SetScaleDialog( chart).setVisible(true);
            }
        });
    }
}
